]> dgit.raspbian.org Git - gnome-shell.git/commit
network: Fix a recursion issue when updating VPN
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 3 Jul 2013 17:47:21 +0000 (13:47 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 3 Jul 2013 17:55:08 +0000 (13:55 -0400)
commitccba18aa8fb102644eb7d756ff3aaccd6f597cef
tree2686dda7cb5095ee465992b74fae29887f379b24
parent586ebcd5be68efe7a3cf3734817c26ff2face7de
network: Fix a recursion issue when updating VPN

_updateIcon should not attempt to sync any active connections, as the
icon-changed signal can be emitted in response to something done during
_syncActiveConnection. In the case of VPN, removeActiveConnection would
cause an icon-changed signal to be emitted immediately, but the state
would not be updated, causing us to call removeActiveConnection over and
over.

Explicitly sync all active connections when we know it needs to be done,
and simply make _updateIcon synchronize with the current device's icon.

https://bugzilla.gnome.org/show_bug.cgi?id=703565
js/ui/status/network.js